<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="description" content="{dede:global.cfg_description/}" />
<meta name="keywords" content="{dede:global.cfg_keywords/}" />
<link href="{dede:global.cfg_templets_skin/}/style/cms.css" rel="stylesheet" media="screen" type="text/css" />
<link href="{dede:global.cfg_templets_skin/}/style/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/core.js"></script>
<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/hd.js"></script>
<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/globalevent.js"></script>
<script language="javascript" type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/cookie.js"></script>
<script language="javascript" type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/changeSkin.js"></script>
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
<!--
function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/ajax_feedback.php");
	  DedeXHTTP = null;
}
function postBadGood(ftype,fid)
{
	var taget_obj = document.getElementById(ftype+fid);
	var saveid = GetCookie('badgoodid');
	if(saveid != null)
	{
		var saveids = saveid.split(',');
		var hasid = false;
		saveid = '';
		j = 1;
		for(i=saveids.length-1;i>=0;i--)
		{
			if(saveids[i]==fid && hasid) continue;
			else {
				if(saveids[i]==fid && !hasid) hasid = true;
				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
				j++;
				if(j==10 && hasid) break;
				if(j==9 && !hasid) break;
			}
		}
		if(hasid) { alert('您刚才已表决过了喔！'); return false;}
		else saveid += ','+fid;
		SetCookie('badgoodid',saveid,1);
	}
	else
	{
		SetCookie('badgoodid',fid,1);
	}
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	myajax.SendGet2("{dede:field name='phpurl'/}/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);
}
function postDigg(ftype,aid)
{
	var taget_obj = document.getElementById('newdigg');
	var saveid = GetCookie('diggid');
	if(saveid != null)
	{
		var saveids = saveid.split(',');
		var hasid = false;
		saveid = '';
		j = 1;
		for(i=saveids.length-1;i>=0;i--)
		{
			if(saveids[i]==aid && hasid) continue;
			else {
				if(saveids[i]==aid && !hasid) hasid = true;
				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
				j++;
				if(j==20 && hasid) break;
				if(j==19 && !hasid) break;
			}
		}
		if(hasid) { alert("您已经顶过该帖，请不要重复顶帖 ！"); return; }
		else saveid += ','+aid;
		SetCookie('diggid',saveid,1);
	}
	else
	{
		SetCookie('diggid',aid,1);
	}
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	var url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action="+ftype+"&id="+aid;
	myajax.SendGet2(url);
}
function getDigg(aid)
{
	var taget_obj = document.getElementById('newdigg');
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	myajax.SendGet2("{dede:global.cfg_phpurl/}/digg_ajax.php?id="+aid);
	DedeXHTTP = null;
}
function check(){
		if(document.formsearch.searchtype.value=="")
		document.formsearch.action="http://www.google.cn/custom"
		else
		document.formsearch.action="{dede:field name='phpurl'/}/search.php"
	} 
-->
</script>
</head>
{dede:include filename='header.htm'/}
<table width="1003"  border="0" cellpadding="0" cellspacing="0" style="margin-top:10px; ">
  <tr>
    <td width="702" align="right" valign="top" style="word-wrap:break-word;overflow:hidden;">
    <table width="659"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="28" align="left" style="background:url({dede:global.cfg_templets_skin/}/images/d3.jpg) left;">
        <table width="100%"  border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="5%" height="27">&nbsp;</td>
            <td width="13%" height="27" style="padding-left:10px"><strong>当前位置:</strong></td>
            <td width="82%" align="left" valign="bottom">
             {dede:field name='position'/}</td>
          </tr>
        </table>
       </td>
      </tr>
      <tr>
        <td style="padding:0 10px" align="center">
        <div class="viewbox">
          <div class="title">
            <h2>{dede:field.title/}</h2>
          </div><!-- /title -->
          
          <div class="info">
            <small>时间:</small>{dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}<small>来源:</small>{dede:field.source/} <small>作者:</small>{dede:field.writer/} <small>点击:</small><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript' language="javascript"></script>次</div><!-- /info -->
            
            <div class="content">
            <table width='100%'>
              <tr><td align="left">{dede:field.body/}(责任编辑：{dede:adminname/})</td></tr>
            </table>
            </div><!-- /content -->
            
            <div class="dede_pages">
              <ul class="pagelist">
                {dede:pagebreak/}
              </ul>
            </div><!-- /pages -->
            
            <div class="newdigg" id="newdigg">
              <div class="diggbox digg_good" onmousemove="this.style.backgroundPosition='left bottom';" onmouseout="this.style.backgroundPosition='left top';" onclick="javascript:postDigg('good',{dede:field.id/})">
                <div class="digg_act">顶一下</div>
                <div class="digg_num">({dede:field.goodpost/})</div>
                <div class="digg_percent">
                  <div class="digg_percent_bar"><span style="width:{dede:field.goodper/}%"></span></div>
                  <div class="digg_percent_num">{dede:field.goodper/}%</div>
                </div>
              </div>
              <div class="diggbox digg_bad" onmousemove="this.style.backgroundPosition='right bottom';" onmouseout="this.style.backgroundPosition='right top';" onclick="javascript:postDigg('bad',{dede:field.id/})">
                <div class="digg_act">踩一下</div>
                <div class="digg_num">({dede:field.badpost/})</div>
                <div class="digg_percent">
                  <div class="digg_percent_bar"><span style="width:{dede:field.badper/}%"></span></div>
                  <div class="digg_percent_num">{dede:field.badper/}%</div>
                </div>
              </div>
            </div>
            <script language="javascript" type="text/javascript">getDigg({dede:field.id/});</script>
						
						<div class="boxoff">
							<strong>------分隔线----------------------------</strong>
						</div>
						<div class="handle">
							<div class="context">
								<ul>
									<li>{dede:prenext get='pre'/}</li>
									<li>{dede:prenext get='next'/}</li>
								</ul>
							</div><!-- /context -->

						</div><!-- /handle -->
						
						<!-- //AJAX评论区 -->
						{dede:include file='ajaxfeedback.htm' /}
          </div>
        </td>
      </tr>
    </table></td>
		<td width="301" class="bkcor" valign="top" style="word-wrap:break-word;overflow:hidden;">
		<div id="right_txtbox">
			<div class="title">来家电指南网推广您的产品</div>
			<div class="content">{dede:myad name='imagepage_right_txt_ad'/}</div>
		</div>
		</td>
  </tr>
</table>
{dede:include filename='footer.htm'/}
</body>
</body>
</html>
